<taglib name='html' />
<include file="$includeFile.public_header" /><!--或是"__ADMIN__/header"-->

<!--  右边内容   -->
<div class="list_tit">
    <span class="tit_left">您当前的位置：首页 > 友情链接管理 > 友情链接<php>if($_GET['id']){echo '编辑';}else{echo '添加';}</php></span>
    <a href="__URL__/index/" class="tit_right">+管理友情链接</a>
</div>
<div class="page_list">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="list_table">
        <tr><th align="left" style="text-indent:5px;">友情链接<present name="$Think.get.id">编辑<else/>添加</present></th></tr>
    </table>
    <form action="__URL__/<php>if($_GET['id']){echo 'update';}else{echo 'insert';}</php>" name="art_add" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="{$Think.get.id}" />
        <table cellpadding="0" border="0" width="100%" class="add_table">
            <tr><th width="100">友情链接名称:</th>
                <td><input type="text" name="name" value="{$data.name}" size="35" maxlength="64" class="page_txt" /></td>
                <th class="hide" width="100" rowspan="2">SEO关键字:</th>
                <td class="hide" rowspan="2">
                    <textarea name="seo_keyword" style="width:250px; height:50px; font-size:12px;">{$data.seo_keyword}</textarea>
                </td>
            </tr>
            <tr class="hide"><th width="100">图片链接图片:</th>
                <td>
                    <input type="file" class="page_txt cursor" name="image" value="{$data.image}" size="35" />
                    <button type="button" class="fl cursor <php>if(!$data['image']){echo 'hide';}</php>" style="width:66px; height:22px; line-height:18px; margin-left:8px;">查看图片</button>
                </td>	
            </tr>
            <tr><th width="100">友情链接地址:</th>
                <td><input type="text" name="url" size="35" maxlength="255" value="{$data.url|default='http://'}" class="page_txt" /><label class="lab"></label></td></tr>
            <tr><th width="100">链接打开方式:</th>
                <td align="left"><html:select name="target" options="target" style="page_text" selected="data[target]" /></td></tr>
            <tr><th>友情链接排序:</th>
                <td><input type="text" name="sort_order" size="35" maxlength="5" value="{$data.sort_order|default='255'}" class="page_txt" /></td></tr>
                     <!--<tr><th>添加时间:</th>
                 <td style="text-align:left;"><input name="add_time" type="text" id="add_time" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd H:mm'})" value="{$data.add_time|date="Y-m-d H:i",###}" size="25" readonly="readonly" /></td></tr>-->
            <tr height="60">
                <th>&nbsp;</th>
                <td valign="middle"><input type="submit" name="edit_btn" class="btn" value="提 交" /></td>
            </tr>
        </table>
    </form>
    <div class="clr"></div>
</div>

<include file="$includeFile.public_footer" />